name='javepashlove'
# find(),存在返回下标，不存在返回-1
print(name.find('love'))
print(name.find('ewafgwe'))
# count(),返回子串出现的次数
print(name.count("love"))
# 修改:# split(),分割字符串，返回列表
# replace():替换
# ljust():左对齐
# rjust():右对齐
new_name=name.split('love')
print(new_name)
print(name.replace('love','like'))
s1='张三'
s2='张三丰'
print(s1.rjust(3,' '))
print(s2.rjust(3,' '))